home *** CD-ROM | disk | FTP | other *** search
/ Freelog 22 / freelog 22.iso / BAS / Internet / Builder / head.htt next >
Text File  |  2001-04-22  |  769b  |  18 lines

  1. if ((self != top) && (parent.theMenu)) {
  2.     var eID = parent.theMenu.findEntry(location.pathname, "url", "right", 0);
  3.     if (eID >= 0) {
  4.         parent.theMenu.selectEntry(eID);
  5.         if (parent.theMenu.setEntry(eID, true)) {
  6.             parent.theMenu.refresh();
  7.         }
  8.     }
  9. } else {
  10.     var navPrinting = false;
  11.     if ((navigator.appName + navigator.appVersion.substring(0, 1)) == "Netscape4") {
  12.         navPrinting = (self.innerHeight == 0) && (self.innerWidth == 0);}
  13.     if ((self.name != 'text') && (self.location.protocol != "file:") && (document.cookie.indexOf('mode=NoFrames') < 0) && !navPrinting) {
  14.         var newLoc = "index.htm?page=" + escape(self.location.pathname);
  15.         if (parseInt(navigator.appVersion) >= 3) {self.location.replace(newLoc);} else {self.location.href = newLoc;}
  16.     }
  17. }
  18.